package code.part04_collection;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: ZJT
 * @Time: 2021/7/19
 * @Description: 泛型
 */
public class P04_Generic {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("1");
        //list.add(1); //'add(java.lang.String)' in 'java.util.List' cannot be applied to '(int)'
    }
}
